package me.siphone.http.server;

import androidx.annotation.NonNull;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestServer;
import com.hjq.http.model.CacheMode;
import com.hjq.http.model.RequestBodyType;
import me.siphone.Constants;

public class ReleaseServer implements IRequestServer {
    @NonNull
    @Override
    public String getHost() {
        return Constants.API_SERVER;
    }

    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    @NonNull
    @Override
    public CacheMode getCacheMode() {
        return CacheMode.DEFAULT;
    }

    @Override
    public long getCacheTime() {
        return Long.MAX_VALUE;
    }
}
